Repository navigation
feat(cli): 错误码与颜色输出(0.5.0) - #10
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更
✗ [USAGE] message;普通异常的ERROR不显示。details明确只进--json,文本不展开。CliContext.color;processContext()按 TTY /FORCE_COLOR/NO_COLOR/NODE_DISABLE_COLORS/TERM计算。style/supportsColor/StyleFormat,自研 ANSI 三个语义色,零第三方依赖;checks 复用同一份判定。--json结构不变。自查
npm pack --dry-run不含tests/scripts/rules/ 包根AGENTS.md/ 构建配置 / lockfileengines.node >= 22.18、产物target: node22未偏离pnpm build的publint/attw/unused通过pnpm size:1,867 B)pnpm check、pnpm test、pnpm build、npm pack --dry-run上层包兼容验证
@ultime/core:154 条测试、pnpm check通过(本地链接 cli)。@ultime/drafter:tests/0.3.0/cli.test.ts18 条通过(本地链接 cli)。@ultime/checks:101 条测试通过(本地链接 cli,checks 0.6 分支)。审核重点
style.ts,checks 通过内部依赖复用;没有复制环境判定。✗ message变为✗ [CODE] message,依赖文本解析的调用方需按迁移说明调整;长 hint 折行不在本 PR。